//
//  ViewController.m
//  progressView
//
//  Created by 李松 on 2017/11/20.
//  Copyright © 2017年 李松. All rights reserved.
//

#import "ViewController.h"
#import "ProgressView.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet UILabel *valueTitle;

@property (weak, nonatomic) IBOutlet ProgressView *progressView;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (IBAction)valueChange:(UISlider *)sender {
    
    NSLog(@"%f", sender.value);
    self.valueTitle.text = [NSString stringWithFormat:@"%.2f%%", sender.value * 100];
    self.progressView.progressValue = sender.value;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
